<template>
  <drop-wrap :data="data" :index="index" :element="element">
    <el-form-item
      :id="element.cid"
      :prop="prop"
      :rules="element.rules"
      :label="element.options.label"
    >
      <el-slider
        v-model="element.options.defaultValue"
        v-bind="Attrs"
      ></el-slider>
    </el-form-item>
  </drop-wrap>
</template>
<script>
export default {
  props: ["element", "data", "index"],
  data() {
    return {};
  },
  computed: {
    prop() {
      return `${this.element.fullModelTag}`;
    },
    store() {
      return this.element.getRoot();
    },
    Attrs() {
      const attrsConfig = {
        disabled: this.element.options.disabled,
      };
      return Object.assign({}, attrsConfig);
    },
  },
};
</script>

<style  scoped>
</style>